﻿using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BestTrader.Cms.Admin.Filter
{
    public class MyAuthorizeAttribute : AuthorizeAttribute
    {

        //protected override bool AuthorizeCore(HttpContextBase httpContext)
        //{
        //    //return base.AuthorizeCore(httpContext);
        //    return DateTime.Now.Minute % 2 == 0
        //}


        //protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
        //{
        //    filterContext.HttpContext.Response.Redirect("/Customer/Login");

        //    //base.HandleUnauthorizedRequest(filterContext);
        //}
    }
}
